package com.example.test2;

import java.util.function.Predicate;

public class PredicateTest {

    public static void main(String[] args) {
        boolean r = test(v -> v > 10, 12);
        System.out.println(r);
    }

    private static boolean test(Predicate<Integer> predicate, Integer v) {
        return predicate.test(v);
    }
}
